<?php

/**
 * ItemCompraInternacional form.
 *
 * @package    dirsac
 * @subpackage form
 * @author     Miguel Flores
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ItemCompraInternacionalForm extends BaseItemCompraInternacionalForm
{
  public function configure()
  {
    unset($this['compra_id']);
    
    $this->widgetSchema['costo_neto_unitario'] = new sfWidgetFormInputText();
    $this->widgetSchema['costo_neto_unitario']->setAttribute('class', 'required');
    $this->widgetSchema['costo_neto_unitario']->setAttribute('id', 'costo_1');

    $this->widgetSchema['cantidad'] = new sfWidgetFormInputText();
    $this->widgetSchema['cantidad']->setAttribute('class', 'required');
    $this->widgetSchema['cantidad']->setAttribute('id', 'cantidad_1');

    $this->widgetSchema['subtotal'] = new sfWidgetFormInputText();
    $this->widgetSchema['subtotal']->setAttribute('class', 'required');
    $this->widgetSchema['subtotal']->setAttribute('id', 'subtotal_1');
  }
}
